define(function(require,exports,module){
	'use strict';
	
	var React = require('react');
	
	module.exports = React.createClass({
		handleSubmit:function(e){
			e.preventDefault();
			var keys = React.findDOMNode(this.refs.keys).value.trim();
			this.props.searchHandle(keys);
		},
		render:function(){
			return (
                <form onSubmit={this.handleSubmit}>
					<div clssName="row">
						<div className="col-md-3">
							<input type="text" className="form-control input" ref="keys" placeholder="关键字搜索用户名、邮箱" />
						</div>
						<div className="col-md-2">
							<input type='submit' className="btn btn-default btn-block" value="搜索" />
						</div>
					</div>
                </form>
			);
		}
	});
});